<?php
/**
 * beimuaihui System
 * Copyright(c) 2011-2020 beimuaihui.
 * @license    http://www.gnu.org/licenses/gpl.html     This software Under GPL V3 License 
 * beimuaihui@gmail.com
 * http://code.google.com/p/beimuaihui/
 * $Id: config.php 307 2011-09-15 13:33:58Z beimuaihui@gmail.com $
 */
define ( "BAOGG_VIRTUAL_PATH", "/beimuaihui/" );
define ( "BAOGG_HTML", "/beimuaihui/html/" );
define ( "BAOGG_THEME", "/beimuaihui/html/themes/default/" );
define ( "BAOGG_CSS", "/beimuaihui/html/themes/default/styles/" );
define ( "BAOGG_JS", "/beimuaihui/html/scripts/" );
define ( "BAOGG_UPLOAD_DIR", BAOGG_ROOT."file/");
define ( "BAOGG_UPLOAD_URL", "/beimuaihui/file/" );
//define ( "BAOGG_CHARSET", "utf-8" );
//define ( "BAOGG_LANGUAGE", "en" ); en,cn
define ( "BAOGG_BASE_URL", rtrim( ($_SERVER ['SCRIPT_NAME']),"/" ) . "/");//
 
//echo '<pre>';print_r($_SERVER);var_dump(BAOGG_BASE_URL);exit;
/*master db name*/
define ( "BAOGG_MDB_DRIVER", "Pdo_Mysql" );
define ( "BAOGG_MDB_HOST", 'localhost' );
define ( "BAOGG_MDB_USER", 'root' );
define ( "BAOGG_MDB_PWD", '' );
define ( "BAOGG_MDB_NAME", "baogg" );
define ( "BAOGG_MDB_PORT", "3306" );
define ( "BAOGG_MDB_PROFILE", true );
define ( "BAOGG_MDB_PREFIX", "baogg_" );
define ( "BAOGG_MDB_options", PDO::MYSQL_ATTR_INIT_COMMAND );
define ( "BAOGG_MDB_CHARSET", "utf8" );

// slave language db name 
define ( "BAOGG_SDB_DRIVER", "Pdo_Mysql" );
define ( "BAOGG_SDB_HOST", 'localhost' );
define ( "BAOGG_SDB_USER", 'root' );
define ( "BAOGG_SDB_PWD", '' );
define ( "BAOGG_SDB_NAME", "storequestion" );
define ( "BAOGG_SDB_PORT", "3306" );
define ( "BAOGG_SDB_PROFILE", true );
define ( "BAOGG_SDB_PREFIX", "store_" );
define ( "BAOGG_SDB_options", PDO::MYSQL_ATTR_INIT_COMMAND );
define ( "BAOGG_SDB_CHARSET", "utf8" );

/*$MY=array();
$MY['db']=array();
$MY['db']['default']=array(
    'driver'   => 'Pdo_Mysql',
	'host'     => 'localhost',
    'username' => 'root',
    'password' => '',
    'dbname'   => 'baogg',
	'profile'  =>  true,
    'prefix'   => 'baogg_',
	'charset'  => 'utf8',
	'driver_options' => array(
			PDO::MYSQL_ATTR_INIT_COMMAND => 'set names utf8'
	)
);
$MY['db']['qa']=array(
    'driver'   => 'Pdo_Mysql',
	'host'     => 'localhost',
    'username' => 'root',
    'password' => '',
    'dbname'   => 'baogg',
	'profile'  =>  true,
    'prefix'   => 'baogg_',
	'charset'  => 'utf8',
	'driver_options' => array(
			PDO::MYSQL_ATTR_INIT_COMMAND => 'set names utf8'
	)
);*/